package com.example.task.ui;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;
import android.widget.SimpleAdapter;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

import com.example.task.R;
import com.example.task.bean.Teacher;
import com.example.task.bean.User;
import com.example.task.bean.User_Signup;
import com.example.task.http.Threads.ListStudentInfoThread;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import okhttp3.FormBody;

public class Student_MessageActivity extends AppCompatActivity {
    @SuppressLint("SetTextI18n")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_student_message);
        Intent intent = getIntent();
        //从Intent中取出Bundle
        Bundle bundle = intent.getExtras();
        User_Signup user = (User_Signup) bundle.getSerializable("User_Signup");
        TextView textView6 = findViewById(R.id.TextView6);
        textView6.setText(user.getName());
        TextView xue_hao = findViewById(R.id.xue_hao);
        xue_hao.setText("学号："+user.getUsername());
        TextView Place = findViewById(R.id.Place);
        Place.setText("学院："+user.getFaculty());
        TextView Principal = findViewById(R.id.Principal);
        Principal.setText("班别："+user.getClassRoom());
        TextView Birthday = findViewById(R.id.Birthday);
        Birthday.setText("出生日期：" + user.getBirthday());
        TextView Mailbox= findViewById(R.id.Mailbox);
        Mailbox.setText("邮箱："+user.getEmail());
        TextView Phone = findViewById(R.id.Phone);
        Phone.setText("联系方式："+user.getTelephone());

    }
}